Moved pre taskSet events to before executing starts

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Fixed record clause value sanitising

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