Fix issue where Dispose of Com objects always threw exceptions