daemon: Flush shunts before unloading plugins