avoided process garbage collection

process was getting garbage collected so the output was never written to
window