Removed destructor, performing cleanup in a shutdown function instead.