Changed the way sequential and chained tasks start the next task
Now using correct object to return from events when a UI task is linked to a background task