implements logout and updates dump