finish server select loop