Limit thread join timeout to apparent #351 type situations.
Limit thread join timeout to apparent #351 type situations.

Prevents accidental early closure of IO workers when there is a lot
of stuff in the pipe and/or reading takes some time (e.g. if network
is involved, etc.)

pyinvoke/invoke,mkusz/invoke,pyinvoke/invoke,mkusz/invoke