added function in dealing with server failure
Merge branch 'master' of https://github.com/melodyqyao/async-system