fix silent failure when child process errors

fixes #4