Fixed issue with nodetool error handling