Added closing of exchanges.