A timeout command with process garbage collection