Allow changing the middleware which is responsible for printing pretty exceptions