Handle errors

If an error is thrown the transform will catch it, instead of throwing an error and causing node to stop.