forget to close fd before os.remove().