Fix to make sure OPEN is reset on close.