Using trap to react to signals and system events

Introduction clean up temporary files

Catching SIGINT or Ctl C

Accumulate a list of trap work to run at exit.

Killing Child Processes on Exit

react on change of terminals window size