Fixed long-standing bug preventing same program from being opened twice during one session. It was an incomplete override of close, naturally enough.