check that we only work on finished runs
Created by: jorana
What is the problem / what does the code in this PR do Add some additional checks to ajax that we only work on data after bootstrax is finished with it.
Otherwise ajax may be deleting data that is being produced by bootstrax at the same time (in the worst case scenario).