Restore error handler before Exception throw