User logged out without actually logging out on payment processed

Not sure if its an issue/bug or just a stupid mistake but have a flow at the minute which results in POS screen without user.

Automation command button fires save ticket and run script as command value (in preparation for script response success validation)

Currently the resulting command rule just pays ticket without scrip response checking.

Final payment on a ticket triggers payment processed rule to close ticket and logout.

Results in POS with no user logged in.

If another ticket started from ther get the * for ticket user;

Ive had this before if its the same thing, its a screen switching issue that @emre had to fix. The user is logged out but something is stopping the pos screen from changing back to the login screen, the result is it appears to stick on the pos screen with the main menu and keyboard buttons disappearing when in fact the user has been looged out

I think it had something to do with other rules conflicting, in on scenario to over come this i added the logout action woth a delay of 1 second, this allowed all other rules to fire and complete before then logging on. All you notice on screen is that 1 second delay before logging out and the login screen appearing. I tried it with a 0.5 second delay but this wasnt long enough for the other processes to complete, the lowest delay i could get to work was 1 second

That means something (a rule or maybe sambapos itself) forces POS screen to display after user log outs.