Remove on_exit from app