Added logout after files download