Hello,
do you tried the method logoff of the interface IF_HTTP_SERVER? If you are using CL_BSP_CONTROLLER2 you can reach it with server->logoff( ). If not you should reach it with runtime->server->logoff( ).
I tried it with IE, Chrome and an old version of IE and it works fine for me.
Regards,
Tobias