Simple IDisposable implementation to fire callbacks when disposing.