implemented Connect Close Event;