Gracefully handling errors during transformation.