( bFinalize ? NERO_BURN_FLAG_CLOSE_SESSION : 0 )
Your code reveals the possible problem. You should really have reverse logic there. If you want to finalize the disc, you should omit the flag, while if you want to just close the last session, the flag should be used. You seem to have misinterpreted the purpose of the flag.