You could have a form open in invisible mode and set it's timer to test if there is a doc open and if it is not close & quit the object.
You could have a form open in invisible mode and set it's timer to test if there is a doc open and if it is not close & quit the object.