Added pane close event handler to update the 'visible' trait
* without this, the dock pane toggle group isn't kept in sync
Updated some debug prints
Fixed pane visibility on AUI perspective restore