Added exit to all scripts, activated headless building