I took a look on the source code and realized in the close method of the AbstractCdiApplication that an IllegalStateException is thrown in case the session was already invalidated. It would be better to place the two lines inside a try… catch… block
Thanks. Missed that one. I’ll fix this issue for the next version.