Be notified when a player leave the server

Hi.
Is there a function in Blueprint that is activated when a player leave the server in a multiplayer game? Or another way?

Thank you.