[TIMOB-13908] Fixed a bug with not catching write exceptions in analytic...

...s