Some cleanup + start the advertise thread.