Rename some variable name and Add to close socket when error cause