add method onDisconnected()