Is it possible to reset the I2C bus in case of an error?

Is there some way to reset the I2C bus and restart its operation through software in case of an error?