Updates to try to fix problems

For some reason some problems have cropped up in my recent variant
calling runs where the threads run into different errors and all end up
dying. One such error was happening when the thread was trying to submit
the pbs script so I created an exception. I also changed the unmounting
order so that the file is unmounted, then I clear the cache.