Quick hack to wait on a launched process.