No sessions on the CLI
tempnam() may not return the file we want -- be sure to unlink it and translate the error