Fast Recovery in Software-Defined Networks