Multiple References in Button Script to the same Business Object

I have a script in Sales Order Entry triggered from a new 'Accept' button that searches for other open orders for the same customer with at least one line item that is not out-of-stock (new UDF I have three references to "SO_SalesOrder_bus"

I use oBusObj to first check the Terms Code on the order

Then I set oMyObj to filter for other SOs for the same customer

Finally, I have oMyObj2 to filter on each open order in turn and search the lines for out-of-stock items

Most of the time everything works fine and randomly but infrequently I get 'Object doesn't support this method or property."  I've tried to note the keystrokes that cause the problem with no luck.  I've search on-line and found that the error might be caused by duplicate references to the same object.  Might this be the case here and, if so, what is the proper way to reference the same object more than once?  Finally, with multiple references, how do you drop all of them?