handle errors a little more robustly. Sending a notice to a dead connection now logs the error, puts the notice back in the queue and sleeps for 60 seconds. A disconnect from the server hopefully is observed and a reconnect attempted within 10 seconds.