Replace #621Fixed race condition between operation cancelation and loading finish

See all the details in #621