Logical processes remain active after my parallelized program ends

Please share an MWE.