exit if we lose the connection