Only try to kill a uwsgi process if there is a pid