Properly reset the response on an exception