pmrep: properly close pmi log
pmrep: properly close pmi log

This was handled internally, e.g. in case of Ctrl-C, but is now
made explicit.

adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp,wuliming/pcp,adfernandes/pcp,wuliming/pcp,adfernandes/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp,adfernandes/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp