additional consistency checks (no destroy if handle owner is set) + unbinding of textures after drawing.