Some error handling and printing cleanup.
Some error handling and printing cleanup.

Change-Id: I367859f5370a0a58deeda5f6951a4982c8c25695

cloudera/recordservice,cloudera/recordservice,cloudera/recordservice,cloudera/recordservice,cloudera/recordservice,cloudera/recordservice,cloudera/recordservice