Rebuild patches, possibly reduce amount of reconnects by sending more pings before closing connection