throw exception on unexpected counterparty response