Let's say I have an application (A) which starts another application (B). How kan A know if B is finished loading ???