Added 500 error handler.