Propagate connection failures to onError
Remove an unused import