Place it immediately after the mistake in an edit, following a single impact sound that marks the fail, then follow it with a sad trombone or a quiet defeat sting to close the moment before the next scene starts.