Thanks much for the info guys, it was greatly appreciated. It turns out that I had a syntax error in a command I was feeding to the plugin which was causing it not execute correctly, but not throw an exception until the application tried to close. Phew, that could have been a lot worse. smile