Allow new connection code to save the error.