Fix coverity defects: Unchecked return value (CHECKED_RETURN)