'Signoff: commit changes on server, unlock mailbox, close connection.'

def quit(self):

    try:
        resp = self._shortcmd('QUIT')
    except error_proto as val:
        resp = val
    self.file.close()
    self.sock.close()
    del self.file, self.sock
    return resp
