Book: Petraeus almost quit over Afghan drawdown