maybe delete $SIG{TERM} is not working. add more test