Added destroy() function for killing the list.