Code:
accApp.quit
Probably.

Timer function I am not sure - you could eat resources and make a loop with a doevents bit in it. Then check whether access is still open and close it...
You could open a small (very small) or hidden form in the access db and put a timer on the form (formtimer is a property) which closes itsself after (say) 5 mins.