fork exitCode/error fixes