Fixed closeIndex REST call

Change-Id: I8d8a83c147687d2a8842accae5058fadad9b290c