exit after writing output file; deal with desktop size limitations