Close the contact list properly.