add support for custom exit codes to nodetool rpc & friends