wgl: change context teardown order to prevent debug crash deleting buffers