fixed exception handling in ArangoSh