Added destructor calling, modified thread_local_storage example to demonstrate