Added a try catch to a potential invalid setStatus on a response, and debug appropriately