Wait for uwsgi to finish