Now correctly closes the failover bat