return error when cannot join the cluster
report network problem
Merge pull request #11 from xiangli-cmu/master

return error when cannot join the cluster