Restart nginx when it has installed, and be certain to shut down nginx when it is being replaced.