Fix. Close loop from coroutine.