Setting up groundwork for connection loss messages to appear at the appropriate time.