Understanding how and why businesses fail can help prepare you for success.