This restart functionality will get complicated if we add a "safe" mode. Ideally there would be a way to restart in "safe" mode or "normal" mode.