Fix for weird situations when there is a ghost process