Fix segfault on shutdown with --no-baseline.