cli: allow to quit on first exception
In long aql scripts sometimes we hit an exception early in the script and the rest of the script continues executing which makes the output really complicated as the errors keep chaining. This commit introduces a 'set exit_on_failure' command which (if true) stops the execution on first exception raised. This is similar to "set -e" command in bash which stops script execution on non-OK exit code.