Close logfile on app quit.