PLINK-467: close fileoutputstream in finally