Add stop() to backend and frontend