Draftsigh API dsDoc.CreateLispFunction

Has anyone else had an issue with the CreateLispFunction and causing Draftsight to crash. In my Draftsight add-in if i use the function dsDoc.CreateLispFunction. Draftsight will crash as soon as i close a tab. even if i call dsDoc.CreateLispFunction and dsDoc.RemoveLispFunction back to back. it still Crashes. In my Addin Code I moved my lispfunctions into a separate disposable class hoping to isolate and handle them without crashing to no avail.