`forEach` executes but assume the `exec` doesn't finish executing for the first element until probably the for loop is already done and the line in question has also been reached.