you don't need to gosub UDF part of the code as they are automatically parsed when script is loaded.

k... then back to the problem.
if the script ain't freeing up resources, you will see kixtart process running in tasks.
also, you might want to change the EXIT to QUIT to clarify it really really quits.
_________________________
!

download KiXnet