Freeing binary buffer on close
Fixed callback reason logging