Default message handler is restored on exit, so it no longer errors if there is a message on exit.

risk is run at start and terminated at exit.