UC-2818: SSS doesn't shutdown gracefully in some cases