handling endpoint had diconnected and reconnected