Fix shutdown
Relates to gitlab-org/omnibus-gitlab#8423 (closed).
This should fix the issue where kas is not shutting down because of connected agents. I don't know why, but I couldn't reproduce the problem locally with Flux CRDs installed. Ideas?
Edited by Mikhail Mazurskiy