def disconnect(self):
if self.connected:<EOL><INDENT>try:<EOL><INDENT>self._smtp.close()<EOL>self._connected = False<EOL>result = True<EOL><DEDENT>except Exception:  <EOL><INDENT>self._logger.exception('<STR_LIT>')<EOL>result = False<EOL><DEDENT>return result<EOL><DEDENT>
Disconnects from the remote smtp server

        :return: True on success, False otherwise