fix crash 

when the server doesn't exist, the server crash
Merge pull request #3 from zhanghaojie/master

fix crash