NXP-14931 fix close session when can not create folder