Fixed problem that caused premature death of the references discovering process in case of a wrong response from a peer.