However, my main concern is that the conditions to determine whether azkaban process is orphaned is too general and may kill valid processes. It also may be easy to miss changing this script to account for future azkaban release.

At the minimum, it should print out the various suspected child orphans, and kill at our discretion.