#NEWLINE# def mongo_disconnect( self ) : #NEWLINE# #INDENT# 'Close the connection to mongodb. (The monitor will start it\n        right back up again, or try to.)\n        ' #NEWLINE# if self . mongo : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . mongo . disconnect ( ) #NEWLINE# #UNINDENT# except Exception as ex : #NEWLINE# #INDENT# self . log . error ( 'Error disconnecting mongo: %s' , ex ) #NEWLINE# #UNINDENT# #UNINDENT# self . mongoavailable = False #NEWLINE# self . mongo = None #NEWLINE# self . app . mongodb = None