Fix calling close more than once resulting in an ObjectDisposedException.

This change is released under the MIT license.
Changed test related to Dispose and Close
	* Check that calling Close on a disposed object do nothing.
	* Check that calling Dispose on a disposed object do nothing.
	* Check that calling DangerousRelease on a disposed object result in ObjectDisposedException.

This change is released under the MIT license.