disconnect server and deal with username in the meantime