I know this is an old thread, but I'm having this same error show up. My application originally only had the EthernetIPforCLXCom driver and everything was fine. I've since added a second driver for OpcDaCom to communicate with an OPC server on my local machine to talk to ABB robots. Now every time I exit the program, either with the 'x' in the top right hand corner or with the exit button (which has Application.Exit()) I get the same error on the same line. I've tried adding the line you suggest, but it doesn't seem to fix the error.
Any help would be fantastic.