For what it's worth I have slow internet, and a repository refresh takes multiple minutes as a minimum. So if that for example isn't canceled, and packagekitd maybe even does that often (which in my opinion maybe it shouldn't but other comments suggested it currently does) that would explain why it never quits. However, KDE Discover also seems to aggressively restart packagekitd from how it looks like to me, that seems like part of the problem. My apologies if I observed any of these things incorrectly.