Restored removal of temp file