replication: interrupt failover if the main device is closed