#NEWLINE# def register_handlers( self , app ) : #NEWLINE# #INDENT# self . _register_error_handlers ( self ) #NEWLINE# teardown = app . teardown_appcontext #NEWLINE# @ teardown #NEWLINE# def disconnect( _ ) : #NEWLINE# #INDENT# return self . _db . disconnect ( )