The server can now be set (was hardcoded) and correctly handle the logout sequence for servers that disconnect early (ex: gmail)