PM-1229 added signal handler to clean exitly and make sure we dupe the stderr from the file back to the stdout.
PM-1229 added signal handler to clean exitly and make sure we dupe the
stderr from the file back to the stdout.

pegasus-isi/pegasus,pegasus-isi/pegasus,pegasus-isi/pegasus,pegasus-isi/pegasus,pegasus-isi/pegasus,pegasus-isi/pegasus,pegasus-isi/pegasus,pegasus-isi/pegasus,pegasus-isi/pegasus,pegasus-isi/pegasus