actually close handle of popen instead of relying of GC