Thanks, I have solved it. The problem was related to ending I2C.