add thread interrupt