Fix the close latch when -k is in effect, make --exec work