Improve printing, exit when all expected events happened