def trap_default_signals
      Signal.trap('INT') do
        puts 'Interrupted. Terminating process...'
        exit
      end
      Signal.trap('HUP') do
        puts 'SIGHUP - Terminating process...'
        exit
      end
      Signal.trap('TERM') do
        puts 'SIGTERM - Terminating process...'
        exit
      end
    end
def trap_default_signals
      Signal.trap('INT') do
        puts 'Interrupted. Terminating process...'
        exit
      end
      Signal.trap('HUP') do
        puts 'SIGHUP - Terminating process...'
        exit
      end
      Signal.trap('TERM') do
        puts 'SIGTERM - Terminating process...'
        exit
      end
    end
Trap common signals as default.