Was getting an error about an existing thread owning the graphics context when I tried to do a reset. Add some graphics termination code. Now doing a second reset causes a NPE. And the basic problem about not having a graphics context in the current thread persists.