Fixed Shutdown Crash on win 7

Windows 7 was throwing directorynotfound
added try catch statement