Little changes in IDisposable example.

Conditional directives for checking disposed state only in DEBUG mode
have been added.