Fix race condition in loop closure
As explained in
https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/loopclosure,
the evt
variable was being modified in the for
loop while the
Goroutine was trying to access it. This led to a race condition.
Relates to #13 (closed)