Maybe the %close command should be embedded in a message, right now, the
mechanism is confusing and too difficult to use.