Logging Natural session end.

Hi All

I have to log Natural session end time before it ends. I need to write this information to database to be able to determine if certain user, that use our application , has logged off. Is there any user exit (something like LOGONEX01-03 but to handle terminate event) that I can customize to suit my needs ?
Maybe there is another way to do it ?

Thanks in advance
michelin