Fixed readme example

Fixed local goroutine exit in example