Moved unload abort code so that the event is only bound if the xhr transport is used...