The workspaces was handling the release event after closing the pane, catch it before closing by using St.Button.