How to create a loop event that can be cancelled when clicked away?

RESOLVED. I fixed the issue by adding a choice at the end of the loop. When Yes the player keeps fishing, when no, the event stops.
Please do not edit your post and remove the question. If you want to add the solution, go for it, but don't remove the original question, as the thread is now pretty meaningless.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-a-loop-event-that-can-be-cancelled-when-clicked-away.53402/