drain buffers when closing file, forcing output or similar