Good catch -- I was previously doing something else in the defer func, but subsequently removed it.