Support for connection lost callback