Send driver error messages to an error_handler.

And fix init_flags.