This function closes the persistent XPA connection
created by XPAOpen() and clears up any allocated
resources.
In general this function need not be used since it
will automatically be called when the variable
storing the XPA handle goes out of scope.
It can be useful if you need to clear up the
connection/resources earlier than this.