JBTM-2216 Updated to check to make sure that there were some Xids recovered in the first scan, if the first scan failed it is possible that there are no Xids to check
[JBTM-2251] use pkill (instead of killall)