Look like wallet issue, have you run it as a server (B coin)? Or may those port already used, check it. Have you tried with BFGminer? I have the same issue before (a long time ago

), the same error message as yours with cgmine but run smoothly with BFGmine.
I tested it.
The same question.