added a behavior when disconnect