catch all exceptions with 500 error