Fixed closeIndex REST call

Change-Id: Ieda2faf7e6a37be8f916013981b0e0a88174b8a0