Renamed context API init/terminate functions.