store tempfile objects statically so that tempfiles are cleaned on process end