router cleanup