Fix closing server before listenning error