terminates on the command exit