Clean up of router.