I would implement IDisposable and call the Dispose() Method in the Destructor. This method you can also call explicitly from the outside