code: def exit_gracefully(self, signum, frame):
      self.kill_now = True
      self.signal = signum
      if (
          hasattr(self.context, "telegram_bot")
          and self.context.telegram_bot is not None
      ):
          self.context.telegram_bot.updater.stop()
      sys.exit(0)
  
file_path: catalyst/catalyst/support/issue_216.py
imports: import sys
  import os
  import signal
  import pandas
  from logbook import Logger
  from catalyst import run_algorithm
  from catalyst.api import symbol, record, order
  from catalyst.finance import commission
label_desc: Use image node_id 2 for calling the GracefulKiller obj's underlying member method code with example usage: obj.exit_gracefully(signum, frame) without return types