Added special exception handling to kill command.