Stop restarting server on mode change