Pass error return code of example scripts and exit