[FIX] Do not lose session.db on authentication error