system-compositor: Detect when a client quits and reset the client pointer to NULL
simple-shm: Fix a segfault on close
Detect surface destruction and clean up