sorted thread interrupt issue