we decrease the ref count multiple times if we call close more than once - I think we must protect from this though