Exit code on command

Add to the CLIClient the ability to return different error codes if the command given in the `--command` or the last command in a file passed through `--file` fails. 

Fix the Load/Dump to also return an error code on error, rather than just a stack dump.