Catch NPE in HttpUrlConnection.disconnect