libdaemon pidfile fixes dand cleanup