Fix logic for message box close button in Isis