Wait() synchronously, avoid races for resources used by command
Asynchronous wait was a bad idea. If a command needed a port, it would
allow a race where the previous command still had the port when the
new command was executed.