closure the routes to be safe on early return