Bug 851557: waiting for windows to close before ending tests
Merge pull request #862 from erikvold/851557

Bug 851557: waiting for windows to close before ending tests r=@Mossop