pmcstat works fine as process exits every time once it is completed.
However, if the userspace program is not closed, logfile flags is not clear even profiling is closed. flags are cleaned only when process is exited through the function call pmc_process_exit.
Flag po->po_flags is now cleaned after profile is being closed.