fix to initsockets.cpp so that it will suppress error message when looping through results