Fix some vulns in rarun2

Check return values ffs!