def close(self) -> None:
    if (self.file is not None):
        self.file.close()
    self._socket.close()
    os.unlink(self.path)
def close(self) -> None:
    if (self.file is not None):
        self.file.close()
    self._socket.close()
    os.unlink(self.path)