client now reacts to connection errors