plugins: quit event and set_user callback