Check for pid existence in graceful shutdown func

Check for the existence of the given pid before trying to
perform commands on it during graceful shutdowns.

Resolve bug https://bugzilla.redhat.com/show_bug.cgi?id=1081020
Merge pull request #5075 from ironcladlou/force-stop-fix

Merged by openshift-bot
Automatic commit of package [openshift-origin-cartridge-phpmyadmin] release [1.19.4-1].
Automatic commit of package [rubygem-openshift-origin-node] release [1.22.8-1].
Automatic commit of package [openshift-origin-cartridge-haproxy] release [1.22.3-1].
Automatic commit of package [openshift-origin-cartridge-jbossews] release [1.21.4-1].
Automatic commit of package [rubygem-openshift-origin-msg-broker-mcollective] release [1.22.6-1].
Automatic commit of package [openshift-origin-cartridge-php] release [1.22.4-1].
Automatic commit of package [openshift-origin-cartridge-python] release [1.22.4-1].
Automatic commit of package [rubygem-openshift-origin-controller] release [1.22.7-1].
Automatic commit of package [openshift-origin-cartridge-dependencies] release [1.22.3-1].
Automatic commit of package [rubygem-openshift-origin-common] release [1.21.5-1].
Automatic commit of package [openshift-origin-cartridge-ruby] release [1.22.4-1].
Automatic commit of package [openshift-origin-cartridge-perl] release [1.21.6-1].
Automatic commit of package [openshift-origin-node-util] release [1.21.7-1].