updated pollPort boolean logic and added attempts limitation for FF port binding