Add ability to stop loops on web client.