MODE-2343 Added more robust handling when shutting down the repository change bus.
Merge pull request #1311 from hchiorean/MODE-2343

MODE-2343 Added more robust handling when shutting down the repository change bus.