Support error handler which is called on process errors