added closing of the plugin and toolbar addition
Merge branch 'plugins' of https://github.com/nomacs/nomacs into pluginsLocal