Added logging for broken connections.