Better exception PessimisticTransaction handling