Stub out where an error should be handled and standardize control flow in similar functions.