Handle hook output appropriately in the Pretty formatter

Currently the Pretty formatter are delaying the output from hooks, see the failing test.