It was because you were returning before `close` was called. Just a little oversight.