<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def close(self):
 """ Closes the connection to the bridge. """

        self.is_closed = True
        self.is_ready = False
        self._command_queue.put(None)