Bugfix: Printwriter never closes it's own filewriter, but depended on
the closing of the module to terminate and flush the buffer.  Now fixed
to close the file pointer on END_PROCESS signal.