def close(self):
<EOL>if self.auto_file_prompt and self.prompt_quiet_changed is True:<EOL><INDENT>self.device.send_config_set(["<STR_LIT>"])<EOL>self.prompt_quiet_changed = False<EOL>self.prompt_quiet_configured = False<EOL><DEDENT>self._netmiko_close()<EOL>
Close the connection to the device and do the necessary cleanup.