Adding error handling in Arrow setup