Better XMLHttpRequest cleanup.