Wolfram Research, Inc.
void MLClose(MLINK link) closes a MathLink connection.
Calling MLClose() does not necessarily terminate a program at the other end of the link.
Any data buffered in the link is sent when MLClose() is called.
Programs should close all links they have opened before terminating.
See The Mathematica Book: Section 2.12.12 and Section 2.12.14.
See also: MLDeinitialize.