Fixed upgrade 18.
Terminating schedule thread when postprocessing an upgrade.