[MNG-5640] Make sure participants and session scope exit are called

Even in case of failing build.