In case of crash inside the application, hide the outer middlewares