[MNG-5640] Make sure participants are called at build end, even if build failed

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`.