I've never done this or tried it before but my idea would be to create a table with a single numeric field and enter one record with 0. Create a form bound to this field. This form is opened on the startup - Hidden. In the form, set the Timer to any non-zero value. On Timer increment this value by one. If the value > 1000, say, then open a pop-up a form with a one minute timer on it that says: "Database will close in 1 minute. Please Shut Down Now". Have a single Cancle Button that re-sets everything (sets value above back to 0. On the Timer for the Pop-Up form make it close the form. Then, On the timer of the startup form issue vba code to Close all forms, and Quit database.
On every form put an On Mouse Move Event that re-sets the value of the field in the table to 0 (using SQL or whatever). You will also need to put this code on other Events as well in case the user doesn't use the mouse.
That's all I can think of off the top of my head. Let me know if it works coz I'd be interested!
Cheers.