I've set up various requests using the security context with a custom JS.
I would like to check if the phone has connectivity before doing the request, and I guess the security context wrapper would be a good place since it wraps all the requests.
How can I cancel the request nicely from there?