Fixed sendMessage bug

sendMessage was attempting to create a socket that already existed and
therefore always failed.