             errorHandler: onError
         ) else {
             logError("Unable to create incident types connection?")
-            loadingState = IMSLoadingState.Reset
+            resetConnection()
             return
         }
 

            errorHandler: onError
        ) else {
            logError("Unable to create ping connection?")
            loadingState = IMSLoadingState.Reset
            return
        }

        loadingState = IMSLoadingState.Trying(connection)
    }




        func onError(message: String) {
            logError("Error while attempting incident types request: \(message)")
            resetConnection()
        }

        logInfo("Sending incident types request to: \(typesURL)")
