Bug 1062114: double-check that we're still hidden before exiting