This version enables a commandline option ‘-quitOnLock’ that closes the pageant application whenever the current Windows session is locked. This prevents keys from remaining in memory when you only lock your workstation, or when you put your laptop to sleep.
Possible future extensions:
- start a timer on lock, and if not unlocked withing X seconds exit otherwise remain running. Allowing short breaks to keep keys loaded in memory.