White House Counsel Greg Craig is resigning and will be replaced by Bob Bauer, the White House said Friday.Bauer, the husband of White House Communications Director Anita Dunn, is a partner at Perkins Coie. Dunn is set to depart the White House by the end of November, and Bauer will start as White House counsel before the start of 2010, according to the White House announcement. Craig, who will return to private practice, has been rumored for weeks to be on the way out, in part because of what some regard as the White House’s botched handling of the closure of the prison at Guantánamo Bay, Cuba. In a statement, President Barack Obama accentuated the positive.“Greg Craig is a close friend and trusted advisor who tackled many tough challenges as White House Counsel,— Obama said in a statement. Obama credited Craig with helping achieve Senate confirmation of Supreme Court Justice Sonia Sotomayor, saying he has been “a huge asset.—In his resignation letter, Craig showed no trace of rancor. “It has been an honor to work for you, and I will always be grateful to you for giving me the chance,— Craig wrote.