NXP-10855: fixing stack not  printed in error handling