Program raising an InvalidOperationException

The software has been running all night and has currently completed more than 50k cycles of the FSM.

Many thanks for your assistance in identifing and working around the bug in the Gadgeteer SDK.

Kindest regards,

Jason.