Added support for failed xfers to completion hook.
Added HTTP redirection limit.