Do we have a potential leak here? I believe if we are calling resolve() we need a close as well.