Check return code and log error if a script fails
Add debug option and update logging
Add interactive option
Add an element that errors for testing