If you add before starttext \interlinepenalty=10000 it works. But alas, not in my case. This will change the settings for all paragraphs while \keeplinestogetheronly applies for a given number of line for the next paragraph.
If you add before starttext \interlinepenalty=10000 it works. But alas, not in my case.