Put it at the end of the failed attempt, after the Metal Gear Alert sound has warned viewers that trouble is coming. Follow the alert with the failed action, then let this cue close the scene before cutting to the reaction or the next try. It also works after a laugh when the failure is more embarrassing than serious.