Use simpler way to prevent process from being ended