Place it right after the failed attempt is shown, as the reaction that closes the scene. Follow it with Sad Violin when the setback stays comic, or cut to Oh My God Wow when the failure turns unexpectedly bigger.