PDI-3568 - cancel switches tab when closing an edited transformation

Switch a tab only if all closing listeners finish successfully.