TST: Always try to close file descriptors of tempfiles