Remove puts in favor of regular error handling