processes plugin: Improve the error handling.