Early exit on error with getItem