Fail if can't chroot
Fix some warnings about unused function results.