All you told it to do was close the ticket not log out. There is not a direct action for just logging out. I am sure you can do what you want but I dont know which action to go through nor do I know the syntax to enter. Hopefully someone can help you. Closing ticket is not logging out.
I was not sure if it could do that or not I was just guessing. Only thing I was sure about is there is not currently an action for it. But looks like next release you will get exactly what you need that’s great!