vcl: improve handling of close on rw