Fixed bug where messageBus might not get flushed after triggering the undeliverable signal handler.