polling-xhr: abort the request when the window is unloaded
Merge pull request #283 from lpinca/fix/polling-xhr-cleanup

polling-xhr: abort the request when the window is unloaded