Closedness of Star Products and Cohomologies