Captutes KeyboardInterrupt for a nicer cancel