Don't crash if pid creation fails. Fixes #482