fixing extra close message