bugfix: terminate thread during Win32Thread::stop(),

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
bugfix:
- check for a valid opengl-shader handle before deleting it.
- release rendr event handler before deleting it.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>