Pass connection errors to callback