<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def destroy(self):
 """ Destroy a Partner of given handle. Before destruction the Partner is stopped, all clients disconnected and all shared memory blocks released. """

        if self.library:
            return self.library.Par_Destroy(ctypes.byref(self.pointer))