handling cancel when adding new plugin
log(), unregister listener in registerToolWindow()