avoiding bare except, KeyboardInterrupt suffices