[Bug 25063] _pclose should wait for the command processor to terminate and return it's exit status