Another way to say "bad timing can kill a good joke" is "A sure way to kill a good joke is to have bad timing."