Manage subprocesses more carefully in case random failures (e.g. MemoryError) occur.
Merge remote-tracking branch 'origin/subprocess-management'