Gracefully fail if we fail to create temporary file or directory