How to close app?

Hello everybody!

I need to close app after user press logout.
Anyone know how to do it?

Thank’s in advance!