You can use "Post Event".
I suppose the crackling noise is basically a random container with several variations of different length. Look into the Play Event of the crackling noise. Add the action type "Post Event" to the list of actions. Right-click into the empty target filed of the Post Event, browse for the loop's Stop Event. This should stop the loop after the crackling noise has ended regardless of its length. Hope it helps!