In this case actually you have object and now I see that you have some os.sleep. So you can do it like below:
Code:
scriptStatusGA = '32/1/3'
grp.checkupdate(scriptStatusGA, true)
-- YOUR SCRIPT
grp.update(scriptStatusGA, false)
Done is better than perfect