Thank you both.
There are several IDEs that automatically close any loop. Check the ability on and you won't accidentally forget to close a DO/LOOP, FOR/NEXT, REPEAT/UNTIL, WHILE/ENDWHILE, and FUNCTION/ENDFUNCTION.
Indigo (Tools - Options - Text Editor - Auto Complete Loops)
BlueIDE (Tools - IDE Options - Text Editor - Auto Complete Loops)
EditorU75.exe (Tools - Options - Text Editor - Automatically Insert Closing Block Statement)
EditorNew.exe (Tools - Options - Text Editor - Automatically Insert Closing Block Statement)