add the raw connection to the error callback

so that end users can listen for on ready/connect
and run their own logic if something bad happens