The shutdown signal is emitted only on the registered primary instance immediately after the main loop terminates.