If your joke doesn't go over well, simply apologize and move on. Don't dwell on it or try to explain the joke, as that can make things worse. Just remember to read your audience in the future and adjust your humor accordingly.