The problem is exactly this :
When I exit, with battle ( normal battle )
The character doenst logout, if there is monsters on his screen <--
After he lose the battle, the character logout.
But the thing is: if you exit, with these conditions, the character should logout after 60 seconds.