#NEWLINE# def unpublish( self ) : #NEWLINE# #INDENT# 'Unpublish the service.\n\n        Call when your service shuts down.\n        ' #NEWLINE# if self . group : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . group . Reset ( ) #NEWLINE# logger . debug ( '%s: Unpublished' , self ) #NEWLINE# #UNINDENT# except dbus . exceptions . DBusException as e : #NEWLINE# #INDENT# logger . debug ( '%s: Unpublish failed: %s' , self , e ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . group = None