A program for leasing rooftop solar panels in Connecticut that was aimed at making the state a leader in green energy is being discontinued.