Added a trycatch with a throw to get better info out of ByteBufWrapper