Steps to reproduce:
Install standard profile
Hack site uuid (drush cset system.site uuid 'whatever the uuid from the original install was')
Exceptions will be thrown during route rebuilding, during HttpKernel:terminate()
Issues likethrow further exceptions, which are actually caught by the testbot.
This doesn't happen during module uninstall, since ModuleHandler::uninstall() calls