call i2c_disable(); when error occured or transfer is completed to prevent error in between I2C transfer