None of those are victimless crimes. If you attempt to shoot someone and your rifle jams, you still exposed him to the risk of dying. This is a ridiculous strawman.
If you don't like that one - how about this: the law in the U.S. criminalizes attempts to do things that are factually impossible. So if you try to poison someone with (what you believe to be) "arsenic" but it turns out to be the regular sugar they normally take in their coffee, you can be convicted of attempted murder in most states.