Small fix for graceful fail of gnuplot with OSX and -onethread

sometimes io.popen fails in osx and -onethread, so this makes sure it fails gracefully and torch can still start