Send initial index in batches
Clean up protocol locking and closing