SERVER-7217 Provide new client API to manage initialization and termination