Syncronize the destructor as well