exit process when cannot open ports