Fix typo in the BWS reference implementation's close()