Arrange for temporary files to be deleted. Also, add a security on stack overflows. Change-Id: I9da2ebefb06409a71b235243ea835ce10d6a9b81
Bug: 7388852 Change-Id: I25e755fc15f5b383acc046f668e9681efa4f0c2f