use try..finally to ensure webdrive closed and quit