remove tempfile after commit