How to force sessions end with Tag Manager - Firebase in Android

Im trying to force Google Analytics to end the session when a User logges out from my app. The reason Im trying to do this is because if someone logs out of my app the hits associated to all my events are still with the userID and I dont want this to happen.

I dont find documentation for this. I'm using Google Tag Manager and Firebase for an Android App.

Thanks for the answers =)