Parallel framework mostly implemented, but exit isn't smooth.