<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def tail_disconnect(self, index):
 """Mark all devices disconnected except target in the chain."""

        try:
            for device in self.devices[index + 1:]:
                device.connected = False
        except IndexError:
            pass