daemon: Fix some more error paths in the double forking.