Great example! In your example attempted murder carries a 10 year sentence, while murder is punishable by death or life in prison. I agree with your implication that the outcome does indeed matter, and like your example, the punishment should be lower when no one is hurt.