bugfix: move rendereventhandler release into onDetached

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