Empty the endpoints array after cleanup