correctly restarts wifi on a loss