added missing conn.Close()