TDCommandLine printString and fix close builtin