fix(*): only close if resp != nil