Add two more checks to bailout if a tempfile is not available