<s> """<STR_LIT>""" <EOL> from fabric . network import disconnect_all <EOL> from prestoadmin . util . application import Application <EOL> import logging <EOL> import sys <EOL> logger = logging . getLogger ( '<STR_LIT:__main__>' ) <EOL> class FabricApplication ( Application ) : <EOL> """<STR_LIT>""" <EOL> def _exit_cleanup_hook ( self ) : <EOL> """<STR_LIT>""" <EOL> disconnect_all ( ) <EOL> Application . _exit_cleanup_hook ( self ) <EOL> def _handle_error ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _log_exception ( ) <EOL> if isinstance ( self . exception , KeyboardInterrupt ) : <EOL> print >> sys . stderr , "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:0> ) <EOL> else : <EOL> Application . _handle_error ( self ) </s>
