[ENSCORESW-884]. Code did not check for errors or undefs before passing
on variables.

Seems that we had some odd behaviour when bogus servers were given to
the script. We just did not bother to check output from subroutines and
caused cryptic errors looking like Socket problems. They were not
networking problems.