Bug 899630 - Intermittent Jetpack tests/test-tabs.testTabsEvent_onCloseWindow

* Using a safer method to close windows
Merge pull request #1170 from erikvold/899630

Bug 899630 - Intermittent Jetpack tests/test-tabs.testTabsEvent_onCloseWindow. r=Mossop