Catch BAD_MATCH from createWindowSurface