in reply to make a required script exit script

When I require a file that calls exit, the whole program stops, just like I expected. Have you tried that?

Caution: Contents may have been coded under pressure.