Unfortunately, neither of those work, in fact I have similar lines of code in other parts of the program that work perfectly, I am really stumped, how else can you exit a sub, that is always when the crash occurs, just as the program exits the sub?