minor formatting fixes
Fix bad var in error checking
Properly handle no multiprocessing children `OSError`. Fixes #4008.