Synchronization and exception handling fixes; TERM fix for chroot.