How do I close a process's filehandle without waiting for it to complete?
Assuming your system supports such things, just send an appropriate signal
to the process (see perlfunc/"kill"). It's common to first send a TERM
signal, wait a little bit, and then send a KILL signal to finish it off.