Bug fix.

Do not raise errors after session disposal.