Added trap for killing all procs.
Merged changes.