def METHOD_NAME(self):
    super().METHOD_NAME()
    try:
        self.pub_channel.close()
    except OSError as exc:
        if exc.errno != errno.EBADF:
            # If its not a bad file descriptor error, raise
            raise
    try:
        self.sub_channel.close()
    except OSError as exc:
        if exc.errno != errno.EBADF:
            # If its not a bad file descriptor error, raise
            raise
    os.unlink(self.socket_path)
    del self.pub_channel
    del self.sub_channel