The pagent with added preshared key can be closed when the computer is in the idle state for a certain time. When the computer is in idle longer than specified (parameter -i or default 30 minutes) then the pagent will be closed.
eg.: pageant.exe -i 20