Error handling

Depends on nearform/nscale-sdk#4.