Fix minor issues.

fix CIDs 10112, 10922, 10921, 10369, 10371, 10372, 10373, 10374, 10406, 10414, 10850-52, 10857, 10859-60, 10863, 10869-76, 10014 10080

uncaught exceptions, return values, uninitialized members, etc