Process doesn't terminate on trace finished