A cake will fall apart or crack if taken out of the pan too quickly. Let your cake cool for a good 5 minutes before removing it from the pan and putting it on a wire rack to cool completely. Lining the bottom of the pan with parchment paper will also help with this immensely.