Delay before retrying.

This fixes #329.