Rewrite spawn to remove forever and add chroot