First try of a middleware to handle unhandled errors