[nida]-fix _layout scropt close