Release the lock and cleanup

def release(self):
        """
        Release the lock and cleanup
        """
        lock = vars(self).pop('lock', missing)
        lock is not missing and self._release(lock)