Fixed thread interrupt conflicts.