Good to have a try-finally that will delete this temporary file.
The `deleteOnExit` often doesn't get called by folk running manual tests if we kill the process etc.