Investigate why nginx is not restarting correctly