add passing test that ensure we skip repeated/bogus close commands