Server starts in seprate thread and everything closes properly. Yay