Fixed bug around kill subcommand.

Fixed bug around kill subcommand.