add dump command
add dump and fix thread destroy oom