Bug 994146: panel should be reset when closed, r=dmose