Automatic render shutdown

Closes #180
Yay, one less parameter!