cpp: rpc: testing for proper SSL exception