Fix sg cleanup: raise exception on last attemp

Related-PROD: PRODX-4003
Change-Id: I832dd8252635860a40b42a9f8c3f8de87f6ed845
1 file changed