def METHOD_NAME(self):
    """
    Shuts down connection to the device safely.
    :raise cam.CanOperationError: is closing the connection did not work
    """
    super().METHOD_NAME()
    status = self.can.close(self.handle)
    if status != CanalError.SUCCESS:
        raise CanOperationError("could not shut down bus", error_code=status)