Handle missing worker pid files.

Otherwise the `while` loop never ends.