Be more robust to forking errors