use exported error for when Closed is called and make the tests pass reliably