Solution is pretty simple, `buff.dup` is nothrow, so let's just remove the try catch block.