I am getting the following error when running this script:


So I read up on freeing DTMs and added this procedure:


Here is the mainloop:


I'm trying to figure out what is causing this...