def close_connection(self):
if self._is_connected:<EOL><INDENT>self._is_connected = False<EOL>self._command_parser.close_when_done()<EOL><DEDENT>
Request a connection close from the SMTP session handling instance.