KAA-213: Update Java SDK to react on log delivery errors. Update source templates.
KAA-213: Update C++ SDK to react on log delivery errors. Update source templates.