typo
Deferred statement isn't executed here, so close ws manually.