workaround probable SDL regression w.r.t context deletion