Run tasks in sub-process.