Adds (disabled) logging to shared/buffer
Fix leak in IO.writeFile
Cleaning