ensure output completion for function log