Fix in server close method