Added close method which closes the cached writers in MetadataHandler.