handle TemporaryFailError

Fixes #4