close xml in exception when try split it (closes #3977)