you need to remove the temporary files before throwing the exception