Working on adding IBuffer
Worked on bug due to freeing before the close callback