Automatically track startup/shutdown

In case the user forgets to make a note of why he/she exited