Wait for the DIM to finish before we finish
Wait for the DIM to finish before we finish

This is important when the script is launched in non-MPI scenarios, as
the parent process may die quickly, causing the child process to be
killed as well.

Signed-off-by: Rodrigo Tobar <bd955c861cbec2e41c0959cf13c7f573fa307e58@icrar.org>

steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge