Added buffer flush when deconstructing RDF loader