Check if outbut buffer has been used before cleaning it