router: Close routes before removing them

Signed-off-by: Lewis Marshall <lewis@lmars.net>