When a user the session is closed but the xpage is still open in the browser, the xpage could still fire requests to the xe:jsonRpcService. But now it appears to 'hang' because the service does not return an error or anything I guess? Maybe this as something to do with the problem I found earlier?
Adding a callback to the service should do it, so I can redirect the user to the login page.