Handle Exceptions in Slim Middleware