implement the required connectionLost