When you have disposed a `Repository`, we should throw an `ObjectDisposedException` instead of allowing things to crash. See #1444