Changed op.notify<-true to close(op.notify).
Merge pull request #474 from yifan-gu/close_chan

Changed op.notify<-true to close(op.notify).