DNN-3820 - added exceptions handling