Merge "Add test to verify the timing of getting app exit reasons" into rvc-dev