    def close_cameras(self):
        """Close both wrist cameras."""
        try:
            for cap in self.cap.values():
                cap.close()
        except Exception as e:
            print(f"Failed to close cameras: {e}")
Close both wrist cameras.
serl_robot_infra/franka_env/envs/franka_env.py