Improved previous XHR management

This fix prevents calls to abort() of previously finished AJAX requests to the server.