CLOUD-169 added exception hangling