How businesses avoid crisis with a successful code of conduct