Add some more error reporting around connections.