modules/buffer: only clear buffer if the bot parts, not any user
scripts: add parts for new `unloading` event
scripts/mpd: use unloading event instead of die function