handling connection outages; resolves #35