link: print wrapper is not always required
link: fix output ordering when exceptions are raised