#NEWLINE# def _postproc_phase3( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . client . end_online ( ) #NEWLINE# if self . engine . stopping_reason : #NEWLINE# #INDENT# note = ( '%s: %s' % ( self . engine . stopping_reason . __class__ . __name__ , str ( self . engine . stopping_reason ) ) ) #NEWLINE# sess = self . client . get_session ( self . client . active_session_id ) #NEWLINE# if ( 'note' in sess ) : #NEWLINE# #INDENT# note += ( '\n' + sess [ 'note' ] ) #NEWLINE# #UNINDENT# self . client . update_session ( self . client . active_session_id , { #NEWLINE# #INDENT# 'note' : note , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# except KeyboardInterrupt : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# except BaseException as exc : #NEWLINE# #INDENT# self . log . warning ( 'Failed to finish online: %s' , exc )