finish open file