fixed potential crash bug (accessing already destroyed SDL renderer)