Code Analysis Fixes - IDisposable-related

Changed App & DataFormats classes to implement IDisposable. These two
changes were recommended by VS Code Analysis.