On closing a control this checks if logs are enabled for the contact/account and displays the appropriate message.