Graceful Shutdown of MongoDB Replicaset in Kubernetes

Do you know it or do you just suggest it - because I can say from experience, that even with Mongodb operator, there is always this error “Detected unclean shutdown” .

So either

a) we must delete the lock file
b) or there must be a proper shutdown procedure avail (which still does not exist)