I think declaring bankruptcy is the only legal option in general, although refunding the price paid might be fine as well in some cases.
Of course you could also have made a promise with a provision for what happens in case you want to back out (typically with some sort of compensation if appropriate).