Added exception if agent can't delete tmpfile after install