Remove various usage of sys.exc_info()

Change-Id: I7454264b82e808c68dd182e7ce43db756651a00b
Merge "Remove various usage of sys.exc_info()"