I can't figure out where I put the document that mentioned it.. but Cisco recently added new Init: functionality.
Init:Services will close any open service - and do nothing if no service is active.
I'm sure you'll find this as useful as I do.. I've been waiting to be able to do this reliably and without relying on ugly workaround for ages.
@edit: I found the document again that listed it.. here's the link: http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/all_models/xsi/6_0/english/programming/guide/XSIbook.html