Fixed bug with exit trap cleaning active PIDs