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

* Using a safer method to close windows