Automatic render shutdown

Closes #180
Do we still need this?