[NEXUS-6127] handle exceptions