[MNG-5640] Change order to make sure participants are called

Even in case of failing build. As currently, in case of failed build (`session.getResult().hasExceptions()` return `true`), return statement stops and execution never reaches participants for `afterSessionEnd`.