Use a cTimer. If you "sleep" for 15 minutes, you won't be able to easily close the application.