Improved plugin interface, now before closing the gpm-cli, all plugin threads are stopped