Handle connection error by exiting the application

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

See also QTBUG-29001.