Refactored open/close index api to make use of the new recently introduced generic ack mechanism

Refactored open/close index api to make use of the new recently introduced generic ack mechanism

Closes #4169