vcl: switch to closed state after app close