you should also remove the reference to the ``xhr`` object to let it be garbage collected