Properly restart router

Logic is hard :( #oops