adding logging on close of GG app- to be added to db