exit streaming gracefully catching KeyboardInterrupt