MacKeeper is a scam and a dangerous app. Delete it now. That might help. I bet it screwed with CoreServices files.
My personal feeling on this is that the use of auto-logout is problematic in general so I have simply stopped using it until apple addresses the issue.
This is my first Mac and now I am wondering if I should have stayed with the P.C.![]()