Add try-catch logic to continue on error