stop RemoteAgent keepAlive interval after a browser refresh