Restoring the error handler

Restoring the error handler no matter what the exception is instead