Use application:stop() from server.