OOIION-1325 remove asserts and add logging to debug platform agent issues.