You can't log out on the application. In the very possible case you can turn off the network connection. Logging out means deleting the application and account, in this case. Yes, the other friends will still have the possibility to send you various chat requests, items, etc.