Fix Bug, some client might close directly, cause
server to crash
重新架构project