Handle user leave event