def stop(self):
if self._outstanding:<EOL><INDENT>_LOGGER.warning('<STR_LIT>',<EOL>len(self._outstanding))<EOL><DEDENT>self._initial_message_sent = False<EOL>self._outstanding = {}<EOL>self._one_shots = {}<EOL>self.connection.close()<EOL>
Disconnect from device.