(GitHub #2) Closed filehandle before deleting the underlying file.