Don't know if this'll help, but I often find that clearing all variables and closeing all tables defeats this behavior. I suspect that some of the variables may be object references, but am not sure. Anyway, I just iterate through the open sessions and close and clear before releasing.
Robert J. Ohrstedt
RJO Associates