hard limit of reconnect attempts;  fixes 20; fixes 21; fixes 22