update .CLOSE in patches for invoice clearing bug