Fixes the #5359 :: Logout feedback lost

Hi,
Can you please review this pull request ?
This is a fix for #5359.