Bug 824597 - Close the pair view when users press the home button while pairing

https://bugzilla.mozilla.org/show_bug.cgi?id=824597

When the window size changed, close the window.