Add a try-except statement to the http connection class