Fixed when client connection closed issue.