The Executioner’s Song

Can the HAL9000 robot in “2001: A Space Odyssey” be guilty of a crime and, if so, is it moral to kill him without a trial?