Handle connection error by exiting the application

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