added check for error on scanports.js connection