fixed process not exiting