rename unlink to dispose, function to be called when disposing of an instance of this object