Fixes a bug with compiz and software-centre while closing loading windows.
Fixes #276.