Move RetryOnException to lib; nothing app about it.