Many factors that I can conclude, starting from the unpreparedness of the system / server that can not be more intelligent than the tricks users do, lack of capital, and even corrupt developers trick the owner by becoming a gambler who knows everything about gap of system. But casinos that have been through more than 3 years would have survived from things like this.
yeah right if players/gamblers found something which benefits them to take advantage like script which can make the house being bankrupt if the house is un-prepared from this surely they will face bankruptcy as many players will follow and use it. that's the reason why most house keeps doing updates to avoid such things like this.