Raghavendra,
this issue happens when using alias or re routing of URL.
Please use http watch free edition while clicking on logoff button.
You will see that logoff URL must be getting blocked. Not passing through the DNS or reverse proxy.
in this case you must unblock the port or this URL from reverse proxy.
Ankur