The HTTP handler now traps networking errors so they can be retried.

Fixes #20