It could be the system call. Try using the program background command. Not sure of official name. Out with family and kids driving me nuts. Let me know if it work. Happy New Years!
Edit: the pause on the front end is because your returning in a transition. If this is undesirable, toggle a Boolean class variable to start a class function counting a ticks callback. Let me know and I can work with you on this tomorrow.