Bug 994146: Panel should be reset when closed.

Related bug: https://bugzilla.mozilla.org/show_bug.cgi?id=994146