added getExitCode to bootstrap, to check current status
fixed bug allowing duplicate environments
Autopilot will not execute another module if the last one has a non 0 exit code