Better checking of library return values.