Please show the full code you're using. Are you sure some other function/command is not failing or abnormally ending KiXtart before you issue the command to logoff?

Also please confirm the exact version being used on the Term Serv