adding client connection closed callback