Fixed erroneous multithreading access to closed handle.
Fixed synchronization and process termination wait issues.
open field in pc structure.