Only destroy the context/surface if they're valid