I suspect that it is a side effect of running through Gradle, but
control+c
closes kash, not the currently executing command. That would probably not be the case if kash was running as its own executable. Although that means it would need some kind of