Fixes issues with recursion in audits on login/logout