What else can I do to terminate the timeout code when I use the single instance CONTEXT that cannot be closed