add exceptions logging