Added the tox_kill function on app close. Renamed the tox reference.