Fix crash when trying to stop the service for a process that is killed