use "close" instead of "exit"