Create a form and set the OnTimer event to, say, 5 minutes. In the OnTimer event open a table to read a field from the record. If the value is true, issue an Application.Quit command, else do nothing.
You might also want the ontimer event to first read a field, that if true, displays a message to the user telling them to exit out of the app because it's going down in x minutes.