Added try-finally to the vws command execution. Fixes [5a1bd05199]