TIMOB-13665 Allow for code to happen during context launch.
Merge pull request #4283 from BlainHamon/timob-13665_IOS_3_1_X

TIMOB-13665 Allow for code to happen during context launch. 3.1.1 backport