Fixed a bug where the Bus would be unregistered before it was registered