Repaired reboot to kill threads and objects