Call terminate on main app