deleting buffer(s) optional on exceptions