Fix crash on dispatch without browsers.

The Console object does not have an exit method. Put the panic
method back on the CLI and use an error event to cause the process
to exit immediately.
Do not print the XML preamble until dispatch.

Prevents the preamble from being written when no browsers
are connected.