Try to handle GL context losses