PLAT-484: adapted s3 uri handler to accept an exception callback