Exiting with multiple overlapping windows (a file selector for e.g.) reliably crashes. Closing the windows on exit caused the the keyboard enter handler to be called with a NULL window surface (wl_surface). While this doesn't look to be documented anywhere, SDL's code-comments note this happens when windows have just been closed. GTK also check surfaces for NULL.