fn finish(child: &mut Child, deadline: Instant) -> Result<(), String>
Waits for a process whose input is closed, and kills it at deadline.
deadline