private Exception SetException(Exception e) { if (_exception == null || !(_exception is ObjectDisposedException)) { _exception = e; } if (_exception != null && _context != null) { _context.CloseContext(); } return _exception; }