How to terminate a session in AOS?

Hi,
I have a class (batch) to find out who loged in twice in AOS and after :
session = new xSession(sesId);
session.terminate();
I run that batch through COM+ (Navision Axapta Business Connector).
batch process can find that session and terminate() runs, but session is still alive.
If I run batch in any AOS client, it’ll work but doesn’t work through COM+.
Any idea?
thanks advance.
MASSOUD