The `kernel.terminate` event is not thrown when an exception occurs, so let’s keep them separate.