made renderer more exception safe

also removed useless matrix stack