Check some return values.

Found by Coverity Scan.
Comment that a return value is intentionally ignored.