Handling timeout with multiple child processes.