Fixed sub-task runner and context spawnInstance()

Signed-off-by: Tom Wright <tom@inflatablecookie.com>