Improved handling of closed and error events.  Shortened max delay to 64sec