Wolfram Research, Inc.
int MLClearError(MLINK link) if possible clears any error on link and reactivates the link.
MLClearError() returns 0 if it was unable to clear the error. This can happen if the error was for example the result of a link no longer being open.
See The Mathematica Book: Section 2.12.13.