Server can leave in reconfiguration.
Refactoring code
Merge pull request #109 from EasonLiao/refactory

Refactory