[PLAT-5769] Use the "first connection" marker from the JVM manager to clear the "retry" flag to avoid repeated re-connects when the back end server is not available

Reviewed-by: Stephen Colebourne