Merge branch 'devel'
Graceful chat shutdown when update or install.
Safe plugin unload.
Merge branch 'master' into devel