Better handling of errors on initialization.