add an active waiting mechanim and a way for result handlers to let framework know if they are synchronous or not. This gives a command builder a chance to wait until resultHandler finishes handling of the results.