Terminate requests in error handler