Don't close resp if it is nil