That’s something that’s indeed dependent on network connection, packet loss and timeouts. I don’t think there’s an awful lot we can do for that specific case (it should already be fine) but we’ll check it out.
Edit: To clarify: The indicator can stay green a little while when network connection goes bad, but it should eventually (quite quickly) turn red. This seems to not always be the case.