Fix DATAEX-183 - wait for process to finish