Adding a hook to allow catching IOExceptions that may arise during HttpURLConnections instead of just swallowing them.