Fix stop process before all action performed
Signed-off-by: Nightmaster <nightmaster@seitaer.com>