Shutdown nginx properly