cleaning after commiting temporary file