Rack middleware to send email when exceptions are raised