Throw ObjectDisposedException where appropriate.