clean exit on typing exit