in reply to make a required script exit script

What happened when you tried calling exit in the required code?