Commiting a temp file that should be deleted later.