prevent simultaneous restarts