Merge pull request #11 from xiangli-cmu/master

return error when cannot join the cluster