def METHOD_NAME(self, recursive=False):
    """ Close, or tear down, a device. """
    log_method_call(self, self.name, status=self.status,
                    controllable=self.controllable)
    try:
        blockdev.loop.teardown(self.path)
    except blockdev.LoopError as e:
        raise errors.LoopError(e)