temporary files in obspy.arclink are not removed if download failed

whenever a download request by e.g. client.getWaveform in obspy.arclink fails, the temporary file created in /var/tmp or /tmp or whatever temporary folder is defined by environment variable TMPDIR, remains allocated on the disk, though with size 0.

we ran now into an issue that millions of those dead files had accumulated on our disk. The quick fix on our side was to remove those files manually but I'd like to ask whether this could be fixed at the source?

Thanks,
Christian