Implement failover for ubsec. Submitted by Subramanian Ramamoorthy