Added logout wait
Merge pull request #291 from AndreiH/added_logout_wait

Added logout wait, this is a fail on CI