if socket open fails print error