Although the program is executed and has finished still there is something extremely important that the application has to do: clean-up.
scriba_destroy(pProgram);
The call to scriba_destroy releases all resources (memory) that were allocated to execute the BASIC program. Calling this function is not mandatory in a single process application that executes only one interpreter and exits from the process. In that case not calling this function the operating system is going to release the resources. However this is a bad practice.