Rack middleware to catch exceptions and returns 500 error. This is a sample project for the training course.