Use rmeove method to cleanup
@@ -231,8 +231,7 @@ class TextualDevice(AbstractDevice):
return cls(io_connection=io_conn)
def __del__(self):
- self._stop_prompts_observers()
- self.io_connection.close()
+ self.remove()
def _collect_cmds_for_state_machine(self):
for state in self._get_available_states():
