Place it immediately after the failed moment in your edit, then follow it with a wrong answer sting to close the joke, or open with a cartoon slip before the mishap and let it answer that setup.