Add __destruct and resolve some memory leak