Financial restructuring: Mind the tax traps