add preprocess options
close window early (maybe a mem leak fix?)