logout after downloading