Fix benchmark cli problem, and server cli close is db problem