Handle connection error by exiting the application

If the compositor connection dies, it is an unrecoverable error.

See also QTBUG-29001.
Merge pull request #4 from mikkoharju/exit

Handle connection error by exiting the application