Callbacks for plugin's OnServe/OnStop