close xml in exception when try spli it (refs #3977)