Make sure nginx and uwsgi is shut down before format