implement the 'k(kill)' command