moved method closeQuietly to XmlStreamUtils