enhance error handling for cloudera manager