enable loop check by using while case, ignore kill's signal INT and TERM