check for init before render shutdown

we could shut down render without having inited it, check

thanks andrea