Updated nuke instance script to be a little smarter, and fixed a bug with a variable that wasn't existing being checked for the instance shutdown