reinstate error handler