Remove the pane from sidebar when close the plugin.
Hide sidebar when remove your last pane..
Fix some guard includes.