This is caused by a defect in OS X that causes the Window Server to crash on some systems.
A workaround is to disable the Genie effect for minimising applications:
- Open System Preferences
- Choose the Dock preferences
- In the "Minimize windows using" menu choose "Scale effect"
- Close System Preferences