fix memory leak
don't exit after command is run
add exit (^D) and clear (^L)