Subscribe to lostConnection event