error handling for chroot environments