add robustness to process_join for processes that are dead
cleaning up