Fix some race conditions in fork_monitor, and also be paranoid about other failures