NXP-13133: Improve scripts errors logging