How do I close a process' filehandle without waiting for it to complete?

If your system supports signals, send a QUIT signal to the process (see the kill function, documented in kill.