exception for invalid port