Factored out common server starter logic.