Fix command tab close handler

Resolves #65
Merge branch 'fix-moved-command-tab'