Abort HTTP requests when exception occurs