Fixing the killing of the processes