BDV SystemEvents can automatically perform user-defined actions when certain events occur in your system.

As an action you can specify starting of application, log out of current user, shutdown or writing an entry into a log file.

As a condition you can set user inactivity, starting/closing of application, successful/unsuccessful ping or some time interval.