trap the kill signal