Improved diagnostics

Added master reconnect on failure

Added EPOLLRDHUP events