Clean up error handler