fixed server close after registration of new user