WFCORE-194 Improve Debian/Ubuntu init.d shutdown process

The init.d script for Debian/Ubuntu can be improved in the way it shutdown the server...

If some process hang up, the actual script don't handle that scenario.

Makes sense. Tnx for the fix.