daemon: work around double-stop on shutdown