Bug 1015617 - listen for hiding the panel immediately, r=mikedeboer