better handling and logging of failed invitations in various scenarios.