kill-processes: Miscellaneous fixes and improvements

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>