Cleanup the router