disconnect when catch a unexpect errpr