For the Exit Course button, try deleting and re-adding the action on the button to close the course – When I run into odd behavior on a button, this is what I’ll do and that fixes it. No idea why, but hey, it works.
Both the AICC_Lesson_Status and AICC_Score should be set before closing the course. I’ve attached a quick sample that shows how/when I set those variables. Lectora records the test score as “test_name_score”, but does not set the AICC_Score on its own.
Hopefully this helps!