'connectToMaster()' fail if unable to open socket

Also, updated todo-list for 'connectToMaster()':
"X" Remains to be done
"V" Done
'connectToMaster()' bind socket