Restore Dispose() method
Fix regression