Make script quit when error happens in child processes.