prelim process killing code