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