Cancel thread loading tasks if another thread task is made.