Added Shutdown function to destructor

Added a call to the Shutdown function within the destructor in case it was not manually called when the object was destroyed.