Complex sentence: When saying goodbye to Mimi as he is on the verge of telling her he is gay she silences him and tells him to keep in contact.
Split into simpler sentences: When saying goodbye to Mimi, he is on the verge of telling her he is gay. However, she silences him and tells him to keep in contact.