Even better (but more complex) /kill implementation