bug fix in trimming in grace hash join
bug fixing in thread management.
run state
scheduler bug fix
refactoring + better accounting of time for each IO in stats