Allow orderly disposal of gdx panel's resources without a bunch of exceptions.