tidy up logout and clear log on logout/reset