fix: print debug code should be removed.
add: shutdown function has been added.