Implemented the kill command.