The edn readers and writers were not properly closing after completing.