Sorry, I was thinking of the wrong sample. As you suspected, the
ConnectionStateChangedonly checks the connection to the EyeX Engine.
EDIT: See next reply for an answer to the first question.
For the other question, it is recommended to instantiate both the InteractionSystem and InteractionContext and dispose them on exit. We might have missed one of these steps on some samples, sorry about that.