Add run-loop assertions.

/cc @mixonic